<?php
/**
 * 短信息配置文件
 *
 */
$_SERVER['LOCALE'] = array(
	'Router'=>array(
		10001=>'指定类(%s)不存在',
		10002=>'指定方法(%s)不存在'
	),
	'apps'=>array(
		'avatar' => array(
			'头像',
			array(
				'message'=>'',
				'addon' =>array(
					'<a href="/?_app=sms&_controller=index&_action=view_send_form&uid=#{uid}">给他发短信</a>',
					'<a href="/?_app=sms&_controller=index&_action=view_send_form&uid=#{uid}">送礼物</a>'
				),
			)
		),
		'friends' => array(
			'好友',
			array(
				'message'=>array(
				    'add'=>	'<a href="/?uid=#{host_id}" target="_blank">#{host_name}</a>请求成为你的好友。<br/>附加信息: "#{message}"',
				    'bind'=>	'你与<a href="/?uid=#{host_id}" target="_blank" >#{host_name}</a>成为好友。',
				    'refuse'=>'<a href="/?uid=#{host_id}" target="_blank">#{host_name}</a>拒绝你的好友请求。',
				    'invite'=>'你与<a href="/?uid=#{host_id}">#{host_name}</a>成为好友。'
				),
				'addon'=>array(
					'add'=>array(
						'<a href="javascript: void(SystemMessage.call(#{id}, Friends, \'bind\', [#{host_id}]))">同意</a>', 
						'<a href="javascript: void(SystemMessage.call(#{id}, Friends, \'refuse\', [#{host_id}]))">拒绝</a>', 
//						'<a href="javascript: void(SystemMessage.call(#{id}, Friends, \'ignore\', [#{host_id}]))">忽略</a>', 
					),
					'bind'=>array(),
					'refuse'=>array()
				),
				'return'=>array(
					'add'=>'你已经将#{host_name}加为好友',
					'refuse'=>'请求已拒绝',
					'ignore'=>'请求已忽略'
				)
			)
		),
		'favorite' => array(
			'收藏',
			array()
		),
		'favorite2' => array(
			'收藏',
			array()
		),
		'armory' => array(
			'魔兽身份',
			array()
		),
		'duel' => array(
			'战斗在NGA',
			array(),
			array(),
		),
		'footprint' => array(
			'足迹',
			array()
		),
		'notify' => array(
			'动态',
			array()
		),
		'rss' => array(
			'订阅',
			array()
		),
		'sms' => array(
			'短信',
			array()
		),
		'index' => array(
			'首页',
			array()
		),
		'nga' => array(
			'艾泽拉斯国家地理论坛',
			array()
		),
		'sc2' => array(
			'星际2论坛',
			array()
		),
		'blog' => array(
			'日记',
			array()// links
		),
		'attention' => array(
			'关注',
			array()// links
		),
		'quest' => array(
			'任务',
			array()// links
		),
		'album' => array(
			'相册',
			array()
		),
		'state'=>array(
			'心情',
			array()
		),
		'gift'=>array(
			'礼物',
			array(
				'return'=>array(
				    'send'=>	'已回赠礼物'
				),
				'addon'=>array(
					'send'=>array(
						'<a href="javascript: void(SystemMessage.call(#{id}, SystemMessageRedirect, \'redirect\', [\'/?\'+$H({_app:\'gift\',_controller: \'index\', _action: \'send\', username: \'#{from_user}\', to_uid: #{from_uid}, represent: 1}).toQueryString()]))">回赠礼物</a>'
					)
				)
			)
		),
		'buff'=>array(
			'技能',
			array(
				'return'=>array(
				    'send'=>	'已回应'
				),
				'addon'=>array(
					'send'=>array(
						'<a href="javascript: void(SystemMessage.call(#{id}, SystemMessageRedirect, \'redirect\', [\'/?\'+$H({_app:\'buff\',_controller: \'index\', _action: \'index\', username: \'#{from_user}\', to_uid: #{from_uid}}).toQueryString()]))">给#{gender}加buff</a>'
					)
				)
			)
		),
		'poll'=>array(
			'投票',
			array()
		),
		'poll_1'=>array(
			'投票',
			array()
		),
		'setting'=>array(
			'设置',
			array()
		),
		'cite'=>array(
			'转帖',
			array()
		),
		'game'=>array(
			'游戏经历',
			array()
		),
		'transcript' => array(
			'副本',
			array()
		),
		'fight' => array(
			'战斗',
			array()
		),
		'guild'=>array(
			'公会',
			array()
		),
		'transfer' => array(
			'开启礼物',
			array()
		)
	)
);


/**
 * 动态配置信息
 * 
 * 开启新动态的时候需要在sns\apps\index\configs\config.php文件和上面$_SERVER['LOCALE']数组中添加相应的动态配置
 * 
 * $_SERVER['LOCALE']['app']数组中添加配置：
 * 'transfer' => array(
 *		'开启礼物',
 *		array()
 *	)目的是为了让没有设置开启的用户自动开启该模块动态
 * 
 * array
 * (
 * 		'title'		=>	'#{username}转帖给大家',														//动态标题
 * 		'row'		=>	'<a href="#{url}">#{title}</a> [<a href="#{url}#viewcomment">评论</a>]',		//每条动态显示格式
 * 		'icon'		=>  '<div class="trends_icon trends_icon_repaste"></div>',						//动态图标
 *  	'combine'	=>	1,																			//是否合并动态
 * 		'max'		=>	10,																			//最大合并条数
 * 		'time'		=>	3600,																		//合并动态的时间范围
 * 		'delimiter' =>	'<br/>',																	//合并的内容间分隔符
 * 		'links'		=>  '查看全部,还有{n}条新转帖'														//超过最大合并数显示内容
 *  	'truncate'  =>	array('title' => 40)  														//截取title字段长度为40
 * 		'blank'		=>  1																			//是否缩进显示
 * )
 */

$_SERVER['feed'] = array(

	//头像
	'avatar' => array(
		'title'		=> '{username}更换了自己的头像:',
		'row'		=> '<a href="/?uid=#{uid}" title="#{username}"><img src="#{url}" class="avatar"/></a>',
		'icon'		=> '<div class="trends_icon trends_icon_head_portrait"></div>',
		'combine'	=> 1,
		'max'		=> 5,
		'time'		=> 86400,		
		'delimiter'	=> ' '
	),
	
	//好友
	'friends' => array(
		'title'		=> '{username}和{text}成为好友',
		'row' 		=> '<a href="/?uid=#{uid}">#{username}</a>',
		'icon'		=> '<div class="trends_icon"></div>',
		'combine'	=> 1,
		'max'		=> 10,
		'time'		=> 36000,
		'delimiter'	=> ' '		
	),
	
	//收藏
	'favorite2' => array(
		'title'		=> '{username}添加了{num}条收藏:',
		'row'		=> '<a href="#{url}" target="_blank">#{title}</a>',
		'icon'		=> '<div class="trends_icon trends_icon_sc"></div>',
		'combine'	=> 1,
		'max'		=> 4,
		'time'		=> 3600,
		'delimiter'	=> '<br/>',
		'links'		=> '<a href="/?_app=favorite2&_controller=index&_action=my_list&uid={uid}">>>查看全部,还有{n}条新收藏</a>',
		'blank'		=> 1	
	),
	
	//魔兽身份
	'armory' => array(
		'title'		=> '{username}绑定魔兽身份:',
		'row'		=> '#{title}',
		'icon'		=> '<div class="trends_icon trends_icon_wow"></div>',
		'links'		=> '<a href="javascript:void(0);" onclick="show_armory({uid}, {aid}, {fid})">>>查看全部</a>'
	),
	
	//更新魔兽身份
	'armory2' => array(
		'title'		=> '{username}更新了魔兽身份:',
		'row'		=> '#{title}',
		'icon'		=> '<div class="trends_icon trends_icon_wow"></div>',
		'links'		=> '<a href="javascript:void(0);" onclick="show_armory({uid}, {aid}, {fid})">>>查看全部</a>'
	),
	
	//日记
	'blog' => array(
		'title'		=> '{username}发表了{num}篇日记:',
		'row'		=> '<a href="#{url}">#{title}</a>[<a href="#{url}#cmt">评论</a>]',
		'icon'		=> '<div class="trends_icon trends_icon_diary"></div>',
		'combine'	=> 1,
		'max'		=> 4,
		'time'		=> 3600,
		'delimiter'	=> '<br/>',
		'links'		=> '<a href="/?_app=blog&_controller=index&_action=index&uid={uid}">>>查看全部,还有{n}篇新日志></a>',
		'truncate'  => array('title' => 40),
		'blank'		=> 1
	),

	//相册
	'album' => array(
		'title'		=> '{username}上传了{num}张照片:',
		'row'		=> '<a href="#{url}"><img src="#{src}" title="#{title}" onload="javascript:if(this.width > 130) this.width=130;"/></a>',
		'icon'		=> '<div class="trends_icon trends_icon_album"></div>',
		'combine'	=> 1,
		'max'		=> 6,
		'time'		=> 3600,
		'delimiter'	=> ' ',		
		'links'		=> '<a href="/?_app=album&_controller=category&_action=view_list&uid={uid}">>>查看全部,还有{n}张新照片</a>'		
	),
	
	//心情  规定时间内发布的心情只显示最新的一条
	'state' => array(
		'title'		=> '{username}更新了心情：',
		'row'		=> '#{state} [<a href="/?_app=comment&_controller=signature&_action=get_afriend_state&stateNum=#{data}&uid=#{uid}#state_#{data}">评论</a>]',
		'icon'		=> '<div class="trends_icon trends_icon_mood"></div>',
		'combine'	=> 1,
		'max'		=> 1,
		'time'		=> 1800,
	),
	
	//礼物
	'gift' => array(
		'title'		=> '{username}自掏腰包：',
		'row'		=> '送给<a href="/?uid=#{to_uid}">#{to_user}</a> #{num} 件礼物：<img src="'.$_SERVER['config']['style'].'#{image}" width="30" id="gift_#{tid}" alt="#{tip_name}" align="absmiddle"><script type="text/javascript">Tips.add("gift_#{tid}", "<span>#{tip_name}</span>#{tip_contents}");</script>',
		'row_gift'	=> '<img src="'.$_SERVER['config']['style'].'#{image}" id="gift_#{tid}" alt="#{tip_name}"  width="30" align="absmiddle"><script type="text/javascript">Tips.add("gift_#{tid}", "<span>#{tip_name}</span>#{tip_contents}");</script>', //单个礼物模板
		'icon'		=> '<div class="trends_icon trends_icon_gift"></div>',
		'combine'	=> 1,
		'max'		=> 6,
		'time'		=> 3600,
		'delimiter'	=> '<br />',
		'blank'		=> 1	
	),
	
	//技能
	'buff' => array(
		'title'		=> '{username}动了动手指:',
		'row'		=> '对<a href="/?uid=#{to_uid}">#{to_user}</a>施展了：<img src="'.$_SERVER['config']['style'].'/res/buff/images/buff#{tip_id}.gif" id="img_#{tid}" alt="#{name}" class="nbuff">#{name}<script type="text/javascript">Tips.add("img_#{tid}", "<span>#{name}</span>#{tip_contents}");</script>',
		'row_buff'	=> '<img src="'.$_SERVER['config']['style'].'/res/buff/images/buff#{tip_id}.gif" id="img_#{tid}" class="nbuff">#{name}<script type="text/javascript">Tips.add("img_#{tid}", "<span>#{name}</span>#{tip_contents}");</script>', //单个技能模板
		'icon'		=> '<div class="trends_icon trends_icon_skill"></div>',
		'combine'	=> 1,
		'max'		=> 6,
		'time'		=> 3600,
		'delimiter'	=> '<br/>',
		'blank'		=> 1
	),
	
	//发起投票
	'poll' => array(
		'title'		=> '{username}发起了投票:',
		'row'		=> '<a href="#{url}">#{title}</a> [<a href="#{url}#comment">评论</a>]',
		'icon'		=> '<div class="trends_icon trends_icon_vote"></div>',
		'combine'	=> 1,
		'max'		=> 4,
		'time'		=> 3600,
		'delimiter'	=> '<br/>',
		'links'		=> '<a href="/~poll.index.viewuser/fid/{uid}">>>查看全部,还有{n}条新投票</a>',
		'truncate'  => array('title' => 40),
		'blank'		=> 1
	),
	
	//参与投票
	'poll_1' => array(
		'title'		=> '{username}参与了投票:',
		'row'		=> '<a href="#{url}">#{title}</a> [<a href="#{url}#comment">评论</a>]',
		'icon'		=> '<div class="trends_icon trends_icon_vote"></div>',
		'combine'	=> 1,
		'max'		=> 4,
		'time'		=> 3600,
		'delimiter'	=> '<br/>',
		'links'		=> '<a href="/~poll.index.viewuser/fid/{uid}">>>查看全部,还有{n}条新投票</a>',
		'truncate'  => array('title' => 40),
		'blank'		=> 1
	),
	
	//个人信息设置
	'setting' => array(
		'title'		=> '{username}更新了个人信息:',
		'row'		=> '#{change}',
		'icon'		=> '<div class="trends_icon trends_icon_personal_profile"></div>'
	),
	
	//转帖
	'cite' => array(
		'title'		=> '{username}转帖给大家：',
		'row'		=> '<a href="#{url}">#{title}</a> [<a href="#{url}#viewcomment">评论</a>]',
		'icon'		=> '<div class="trends_icon trends_icon_repaste"></div>',
		'combine'	=> 1,
		'max'		=> 4,
		'time'		=> 3600,
		'delimiter'	=> '<br/>',
		'links'		=> '<a href="/?f_uid={uid}&view=user&_app=cite&_controller=index&_action=index">>>查看全部,还有{n}条新转帖</a>',
		'truncate'  => array('title' => 40),
		'blank'		=> 1
	),
	
	//游戏经历
	'game' => array(
		'title'		=> '{username}填写了{num}款游戏经历：',
		'row'		=> '<a href="#{url}"><img src="#{iurl}" title="#{title}" onload="javascript:if(this.width > 65) this.width=65;"/></a>',
		'icon'		=> '<div class="trends_icon trends_icon_game"></div>',
		'combine'	=> 1,
		'max'		=> 5,
		'time'		=> 3600,
		'delimiter'	=> ' ',
		'links'		=> '<a href="/?_app=game&_controller=nthgame&_action=view_allgame&uid={uid}">>>查看全部,还有{n}条新游戏</a>',
	),
	
	//开启保险
	'transfer' => array(
		'title'		=> '{username}人品爆发，在超级礼物抢夺大战中将“<a href="{url}">{num}</a>”礼物成功开启。',
		'icon'		=> '<div class="trends_icon trends_icon_gift_open"></div>',
		'combine'	=> 0,
		'links'		=> '<a href="{url}">>>查看详情</a>',
	),
	
	//MT大冒险
	'mt'	   => array(
		'title'		=> '{username}加入了MT大冒险，<a href="http://i.178.com/~app/id/2">快去看看?</a>',
		'icon'		=> '<div class="trends_icon trends_icon_mt"></div>'
	)
	
);
